import { Button } from 'cc';
import { BaseWindow, app, ccbutton, ccclass, ccmodifier } from '../../../extensions/cc-feather/assets/src';

/**
 * - 作者: DoooReyn
 * - 日期: 2023.11.01
 * - 名称: BootWindow
 * - 描述: 启动窗口
 */
@ccclass()
@ccmodifier('BootWindow')
export class BootWindow extends BaseWindow {
    @ccbutton({ func: 'onClicked' }, 'Button')
    btn: Button;

    @ccbutton({ func: 'close' }, 'BtnBack')
    btnBack: Button;

    /** 二级界面被点击时调用 */
    async onClicked() {
        await app.view.popup.add('prefab/BootPopup');
    }
}
